'''
Created on 16/11/2014

@author: Javi

'''

from django.conf.urls import patterns, url

from polls import views

urlpatterns = patterns('',
    
    url(r'^$', views.index, name='index'),
    # ex: /polls/5/
    url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'),
    # /polls/specifics/5
    url(r'^specifics/(?P<question_id>\d+)/$', views.detail, name='detail'),
    # ex: /polls/5/results/
    url(r'^(?P<question_id>\d+)/results/$', views.results, name='results'),
    # ex: /polls/5/vote/
    url(r'^(?P<question_id>\d+)/vote/$', views.vote, name='vote'), 
    
)